home *** CD-ROM | disk | FTP | other *** search
/ Aminet 32 / Aminet 32 (1999)(Schatztruhe)[!][Aug 1999].iso / Aminet / disk / misc / ADFlib.lha / Lib / adf_dir.h < prev    next >
C/C++ Source or Header  |  1999-05-16  |  2KB  |  52 lines

  1. #ifndef ADF_DIR_H
  2. #define ADF_DIR_H 1
  3.  
  4. /*
  5.  *  ADF Library. (C) 1997-1998 Laurent Clevy
  6.  *
  7.  *  adf_dir.h
  8.  *
  9.  */
  10.  
  11. #include"adf_str.h"
  12. #include"adf_err.h"
  13. #include"adf_defs.h"
  14.  
  15. #include"prefix.h"
  16.  
  17. BOOL isDirEmpty(struct bDirBlock *dir);
  18. PREFIX RETCODE adfRemoveEntry(struct Volume *vol, SECTNUM pSect, char *name);
  19. PREFIX struct List* adfGetDirEnt(struct Volume* vol, SECTNUM nSect );
  20. PREFIX struct List* adfGetRDirEnt(struct Volume* vol, SECTNUM nSect, BOOL recurs );
  21. PREFIX void adfFreeDirList(struct List* list);
  22.  
  23. RETCODE adfEntBlock2Entry(struct bEntryBlock *entryBlk, struct Entry *entry);
  24. PREFIX void adfFreeEntry(struct Entry *entry);
  25. RETCODE adfCreateFile(struct Volume* vol, SECTNUM parent, char *name,
  26.     struct bFileHeaderBlock *fhdr);
  27. PREFIX RETCODE adfCreateDir(struct Volume* vol, SECTNUM parent, char* name);
  28. SECTNUM adfCreateEntry(struct Volume *vol, struct bEntryBlock *dir, char *name );
  29. PREFIX RETCODE adfRenameEntry(struct Volume *vol, SECTNUM, char *old,SECTNUM,char *new);
  30.  
  31.  
  32. RETCODE adfReadEntryBlock(struct Volume* vol, SECTNUM nSect, struct bEntryBlock* ent);
  33. RETCODE adfWriteDirBlock(struct Volume* vol, SECTNUM nSect, struct bDirBlock *dir);
  34. RETCODE adfWriteEntryBlock(struct Volume* vol, SECTNUM nSect, struct bEntryBlock *ent);
  35.  
  36. char* adfAccess2String(long acc);
  37. int adfIntlToUpper(int c);
  38. int adfGetHashValue(char *name, BOOL intl);
  39. void myToUpper( char *ostr, char *nstr, int,BOOL intl );
  40. PREFIX RETCODE adfChangeDir(struct Volume* vol, char *name);
  41. PREFIX RETCODE adfParentDir(struct Volume* vol);
  42. PREFIX RETCODE adfSetEntryAccess(struct Volume*, SECTNUM, char*, long);
  43. PREFIX RETCODE adfSetEntryComment(struct Volume*, SECTNUM, char*, char*);
  44. SECTNUM adfNameToEntryBlk(struct Volume *vol, long ht[], char* name, 
  45.     struct bEntryBlock *entry, SECTNUM *);
  46.  
  47. PREFIX void printEntry(struct Entry* entry);
  48. void adfFreeDirList(struct List* list);
  49.  
  50. #endif /* ADF_DIR_H */
  51.  
  52.